package hn.cch.provider;

import hn.cch.common.model.User;
import hn.cch.common.util.JsonUtil;
import hn.cch.common.service.LoginService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class LoginProvider implements LoginService {

    private static Logger logger = LoggerFactory.getLogger(LoginProvider.class);

    @Override
    public String login(User user) {
        logger.info("login:username={}|password={}", user.getUsername(), user.getPassword());
        return JsonUtil.toString(user);
    }
}
